/*
 * @Author: Superficial
 * @Date: 2021-07-19 10:36:39
 * @LastEditTime: 2022-06-05 10:37:08
 * @Description: 自增表常量配置
 */

import { AutoIncrementIDOptions } from '@typegoose/auto-increment'

export const GENERAL_AUTO_INCREMENT_ID_CONFIG: AutoIncrementIDOptions = {
  field: 'id',
  startAt: 1,
  incrementBy: 1,
  trackerCollection: 'identitycounters',
  trackerModelName: 'identitycounter',
  // https://github.com/typegoose/auto-increment
  // https://github.com/typegoose/auto-increment/blob/master/src/autoIncrement.ts
  // https://github.com/typegoose/auto-increment/issues/11
  // fieldKey: 'field',
  // modelNameKey: 'modelName',
}
